<?php

namespace app\admin\controller;


use app\admin\service\DeviceImeiService;

/**
 * 设备列管理-控制器
 * Class DeviceImei
 */
class DeviceImei extends Backend
{

    public function initialize()
    {
        parent::initialize();
        $this->service = new DeviceImeiService();
    }


    /**
     * 设置是否活跃
     * @return mixed
     */
    public function setIsActive()
    {
        $result = $this->service->setIsActive();
        return $this->jsonReturn($result);
    }

    /**
     * 设置是否禁止
     * @return mixed
     */
    public function setForbid()
    {
        $result = $this->service->setForbid();
        return $this->jsonReturn($result);
    }

    /**
     * 设置是否禁止
     * @return mixed
     */
    public function setQueryStatus()
    {
        $result = $this->service->setQueryStatus();
        return $this->jsonReturn($result);
    }

}

